package com.wilmer.testRecords.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.wilmer.common.annotation.Excel;
import com.wilmer.common.core.domain.BaseEntity;

/**
 * 随堂测试记录对象 yw_test_records
 * 
 * @author zl
 * @date 2024-04-11
 */
public class YwTestRecords extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 随堂测试记录id */
    private Long recordId;

    /** 测试表id */
    @Excel(name = "测试表id")
    private Long testId;

    /** 学生(用户)id */
    @Excel(name = "学生(用户)id")
    private Long studentId;

    /** 学生开始测试的时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "学生开始测试的时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date timeStarted;

    /** 学生完成测试的时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "学生完成测试的时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date timeFinished;

    /** 学生在测试中获得的总分 */
    @Excel(name = "学生在测试中获得的总分")
    private Long totalScore;

    /** 学生的测试状态(1已完成 2未完成 3缺席) */
    @Excel(name = "学生的测试状态(1已完成 2未完成 3缺席)")
    private String status;

    /** 教师对学生测试表现的备注或评论 */
    private String remarks;

    /** 随堂测试名 */
    private String testName;

    /** 学生名 */
    private String nickName;

    /** 学生头像 */
    private String avatar;

    public String getTestName() {
        return testName;
    }

    public void setTestName(String testName) {
        this.testName = testName;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public void setRecordId(Long recordId)
    {
        this.recordId = recordId;
    }

    public Long getRecordId() 
    {
        return recordId;
    }
    public void setTestId(Long testId) 
    {
        this.testId = testId;
    }

    public Long getTestId() 
    {
        return testId;
    }
    public void setStudentId(Long studentId) 
    {
        this.studentId = studentId;
    }

    public Long getStudentId() 
    {
        return studentId;
    }
    public void setTimeStarted(Date timeStarted) 
    {
        this.timeStarted = timeStarted;
    }

    public Date getTimeStarted() 
    {
        return timeStarted;
    }
    public void setTimeFinished(Date timeFinished) 
    {
        this.timeFinished = timeFinished;
    }

    public Date getTimeFinished() 
    {
        return timeFinished;
    }
    public void setTotalScore(Long totalScore) 
    {
        this.totalScore = totalScore;
    }

    public Long getTotalScore() 
    {
        return totalScore;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setRemarks(String remarks) 
    {
        this.remarks = remarks;
    }

    public String getRemarks() 
    {
        return remarks;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("recordId", getRecordId())
            .append("testId", getTestId())
            .append("studentId", getStudentId())
            .append("timeStarted", getTimeStarted())
            .append("timeFinished", getTimeFinished())
            .append("totalScore", getTotalScore())
            .append("status", getStatus())
            .append("remarks", getRemarks())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
